package com.ruoyi.refundQuery.service.impl;

import java.util.List;

import com.ruoyi.refund.domain.HouseRefundT;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.refundQuery.mapper.HouseRefundQueryTMapper;
import com.ruoyi.refundQuery.service.IHouseRefundQueryTService;

/**
 * 退款查询Service业务层处理
 * 
 * @author lijie
 * @date 2023-05-04
 */
@Service
public class HouseRefundQueryTServiceImpl implements IHouseRefundQueryTService
{
    @Autowired
    private HouseRefundQueryTMapper houseRefundTMapper;

    /**
     * 查询退款查询
     * 
     * @param refundId 退款查询主键
     * @return 退款查询
     */
    @Override
    public HouseRefundT selectHouseRefundTByRefundId(Long refundId)
    {
        return houseRefundTMapper.selectHouseRefundTByRefundId(refundId);
    }

    /**
     * 查询退款查询列表
     * 
     * @param houseRefundT 退款查询
     * @return 退款查询
     */
    @Override
    public List<HouseRefundT> selectHouseRefundTList(HouseRefundT houseRefundT)
    {
        return houseRefundTMapper.selectHouseRefundTList(houseRefundT);
    }

    @Override
    public HouseRefundT selectHouseRefundSum(HouseRefundT houseRefundT)
    {
        return houseRefundTMapper.selectHouseRefundSum(houseRefundT);
    }

    /**
     * 新增退款查询
     * 
     * @param houseRefundT 退款查询
     * @return 结果
     */
    @Override
    public int insertHouseRefundT(HouseRefundT houseRefundT)
    {
        return houseRefundTMapper.insertHouseRefundT(houseRefundT);
    }

    /**
     * 修改退款查询
     * 
     * @param houseRefundT 退款查询
     * @return 结果
     */
    @Override
    public int updateHouseRefundT(HouseRefundT houseRefundT)
    {
        return houseRefundTMapper.updateHouseRefundT(houseRefundT);
    }

    /**
     * 批量删除退款查询
     * 
     * @param refundIds 需要删除的退款查询主键
     * @return 结果
     */
    @Override
    public int deleteHouseRefundTByRefundIds(Long[] refundIds)
    {
        return houseRefundTMapper.deleteHouseRefundTByRefundIds(refundIds);
    }

    /**
     * 删除退款查询信息
     * 
     * @param refundId 退款查询主键
     * @return 结果
     */
    @Override
    public int deleteHouseRefundTByRefundId(Long refundId)
    {
        return houseRefundTMapper.deleteHouseRefundTByRefundId(refundId);
    }
}
